﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class wangdianxinxi_detail : System.Web.UI.Page
{
    public string nbianhao, nmingcheng, nshengfen, nshixian, ndizhi, nzhaopian, ndianhua, nyoubian, nchuanzhen, nbeizhu;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            string sql;
            sql = "select * from wangdianxinxi where id=" + Request.QueryString["id"].ToString().Trim();
            getdata(sql);
        }
    }
    private void getdata(string sql)
    {
        DataSet result = new DataSet();
        result = new Class1().hsggetdata(sql);
        if (result != null)
        {
            if (result.Tables[0].Rows.Count > 0)
            {
                nbianhao = result.Tables[0].Rows[0]["bianhao"].ToString().Trim(); 
                nmingcheng = result.Tables[0].Rows[0]["mingcheng"].ToString().Trim(); 
                nshengfen = result.Tables[0].Rows[0]["shengfen"].ToString().Trim();
                nshixian = result.Tables[0].Rows[0]["shixian"].ToString().Trim(); 
                ndizhi = result.Tables[0].Rows[0]["dizhi"].ToString().Trim(); 
                nzhaopian = result.Tables[0].Rows[0]["zhaopian"].ToString().Trim(); 
                ndianhua = result.Tables[0].Rows[0]["dianhua"].ToString().Trim();
                nyoubian = result.Tables[0].Rows[0]["youbian"].ToString().Trim(); 
                nchuanzhen = result.Tables[0].Rows[0]["chuanzhen"].ToString().Trim(); 
                nbeizhu = result.Tables[0].Rows[0]["beizhu"].ToString().Trim();

            }
        }
    }
}

